package cn.opopopo.design_pattern_learn.行为型.observer;

// 手机用户
public class MobileUser implements NewsObserver {
    private String name;

    public MobileUser(String name) {
        this.name = name;
    }

    @Override
    public void update(String news) {
        System.out.println("[📱 " + name + "] 收到推送: " + news);
    }
}